<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>links</title>
	</head>

	<body>
		<div>
			<?php include ('inc/header.php'); ?>
			<?php include ('inc/nav.php'); ?>
			
			<?php
				//Strings
				$name = 'Daniela';
				
				//echo 'Hello ' . $name;
				//echo "Hello $name";
				
				
				//Arrays
				$myArr = array("Hello", 'World');
				$myArr[1] = 'Planet';
				$myArr[] = 'Earth';
				$myArr[] = '.';
				
				$table = array();
				$table["name"] = 'Daniela';
				$table["job"] = "Engineer";
				$table["email"] = 'danielayacovone@gmail.com';
				
				$str = "Hello $table[name] you are a wonderful $table[job].  I will contact you at $table[email].";
			?>

			<div>
				<?php for ($i=0; $i<3; $i++): ?>
					<?=$myArr[$i]?>
				<?php endfor; ?>
			</div>
			<div>
				
				<?php foreach ($myArr as $item): ?>
					<?=$item?>
				<?php endforeach; ?>
			</div>
			<div>
				<?php foreach ($table as $item): ?>
					<?=$item?>
				<?php endforeach; ?>
			</div>
			<div>
				<?php foreach ($table as $key => $item): ?>
					<?=$key?>=<?=$item?> <br />
				<?php endforeach; ?>
			</div>
			<div>
				
					<table border = "2">
					<?php foreach ($table as $key => $item): ?>
					<tr >
						<td><?=$key?></td>
						<td><?=$item?></td>
					</tr>	
				<?php endforeach; ?>
				</table>
				<?=$str?>
			</div>
			

			<footer>
				<p>
					&copy; Copyright  by New Paltz
				</p>
			</footer>
		</div>
	</body>
</html>
